#include "stm32f10x.h"

#define BMP280_ADDR         0xEC
#define BMP280_TEMP_ADDR    0xFA
#define BMP280_PRESS_ADDR   0xF7

extern u32 press;
void BMP280_init(void);
void bmp280_WriteByte(u8 addr, u8 dat);
u8 bmp280_ReadByte(u8 addr);
short bmp280_MultipleReadTwo(unsigned char addr);
long bmp280_GetValue(void);
float bmp280PressureToAltitude(float* pressure);
